﻿using System.Collections.Generic;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.Site.Request
{
    /// <summary>
    /// 敏感词查询
    /// yun.site.sensitiveword.query
    /// </summary>
    public class SensitiveWordQueryRequest : ITopRequest<IntResultResponse>
    {
        /// <summary>
        /// 带查询的单词
        /// </summary>
        public string Word { get; set; }

        public string GetApiName()
        {
            return "yun.site.sensitiveword.query";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"word",Word}
            };
            return parameters;
        }

        public void Validate()
        {
            RequestValidator.ValidateRequired("word", Word);
        }
    }
}
